package com.okami.clazz;

import com.okami.clazz.packa.A;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

/**
 * @author: TanJingyu
 * @create: 2021-03-09 11:05
 **/
public class ABTest {
    public static void main(String[] args) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
        A a = A.createA();

        a.show();

        Method run = a.getClass().getDeclaredMethod("run");

        run.setAccessible(true);

        run.invoke(a);
    }
}
